package o;

import android.animation.Animator;
import android.animation.ValueAnimator;
import android.animation.ValueAnimator.AnimatorUpdateListener;
import android.view.ViewGroup;
import android.widget.TextView;
import androidx.annotation.RestrictTo;
import androidx.annotation.RestrictTo.d;
import androidx.transition.Transition;
import java.util.Map;

@RestrictTo({d.LIBRARY_GROUP})
public class asd extends Transition {
    public void ˋ(nx nxVar) {
        ˎ(nxVar);
    }

    public void ॱ(nx nxVar) {
        ˎ(nxVar);
    }

    private void ˎ(nx nxVar) {
        if (nxVar.ॱ instanceof TextView) {
            nxVar.ˊ.put("android:textscale:scale", Float.valueOf(((TextView) nxVar.ॱ).getScaleX()));
        }
    }

    public Animator ˋ(ViewGroup viewGroup, nx nxVar, nx nxVar2) {
        float f = 1.0f;
        if (nxVar == null || nxVar2 == null || !(nxVar.ॱ instanceof TextView) || !(nxVar2.ॱ instanceof TextView)) {
            return null;
        }
        float floatValue;
        final TextView textView = (TextView) nxVar2.ॱ;
        Map map = nxVar.ˊ;
        Map map2 = nxVar2.ˊ;
        if (map.get("android:textscale:scale") != null) {
            floatValue = ((Float) map.get("android:textscale:scale")).floatValue();
        } else {
            floatValue = 1.0f;
        }
        if (map2.get("android:textscale:scale") != null) {
            f = ((Float) map2.get("android:textscale:scale")).floatValue();
        }
        if (floatValue == f) {
            return null;
        }
        Animator ofFloat = ValueAnimator.ofFloat(new float[]{floatValue, f});
        ofFloat.addUpdateListener(new AnimatorUpdateListener(this) {
            final /* synthetic */ asd ॱ;

            public void onAnimationUpdate(ValueAnimator valueAnimator) {
                float floatValue = ((Float) valueAnimator.getAnimatedValue()).floatValue();
                textView.setScaleX(floatValue);
                textView.setScaleY(floatValue);
            }
        });
        return ofFloat;
    }
}
